<template>
  <div class="welcome-container">
    <div class="welcome-content">
      <div class="welcome-header">
        <el-icon class="welcome-icon"><Document /></el-icon>
        <h1>欢迎使用翻译助手</h1>
      </div>

      <div class="quote-container">
        <div class="quote-card">
          <p class="quote">
            "Translation is not a matter of words only: it is a matter of making
            intelligible a whole culture."
          </p>
          <p class="author">— Anthony Burgess</p>
        </div>

        <div class="quote-card">
          <p class="quote">"语言是文化的载体，翻译是文明的桥梁。"</p>
          <p class="author">— 林语堂</p>
        </div>
      </div>

      <div class="tips-section">
        <h2>开始使用</h2>
        <div class="tips-grid">
          <div class="tip-item">
            <el-icon><Plus /></el-icon>
            <p>点击左侧"新建文章"开始创作</p>
          </div>
          <div class="tip-item">
            <el-icon><Edit /></el-icon>
            <p>使用富文本编辑器编写内容</p>
          </div>
          <div class="tip-item">
            <el-icon><Document /></el-icon>
            <p>自动保存，随时回顾历史文章</p>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { Document, Plus, Edit } from "@element-plus/icons-vue";
</script>

<style scoped>
.welcome-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
  padding: 20px;
}

.welcome-content {
  max-width: 800px;
  width: 100%;
  text-align: center;
}

.welcome-header {
  margin-bottom: 48px;
}

.welcome-icon {
  font-size: 48px;
  color: #1b6add;
  margin-bottom: 16px;
}

h1 {
  font-size: 32px;
  color: #333;
  font-weight: 500;
}

.quote-container {
  display: flex;
  gap: 24px;
  margin-bottom: 48px;
  justify-content: center;
}

.quote-card {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  flex: 1;
  max-width: 360px;
  transition: transform 0.2s;
}

.quote-card:hover {
  transform: translateY(-4px);
}

.quote {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}

.author {
  font-size: 14px;
  color: #999;
}

.tips-section {
  text-align: center;
}

h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 24px;
  font-weight: 500;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tip-item {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s;
}

.tip-item:hover {
  transform: translateY(-4px);
}

.tip-item .el-icon {
  font-size: 32px;
  color: #1b6add;
  margin-bottom: 16px;
}

.tip-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}
</style>
